<template>
	<!--
    	作者：offline
    	时间：2018-09-12
    	描述：入库详情
    -->
    <div class="m-view-storage">
		<ag-grid-vue  class="m-agTableContent ag-theme-balham" :gridOptions="gridOptions" :columnDefs="columnDefs" :rowData="rowData"  v-loading="loading" rowSelection="single"></ag-grid-vue>
	</div>
</template>

<script>
	import localeText from "@/i18n/agGridText";
	
	export default{
		data(){
			return{
				columnDefs:[],
				rowData:[],
				loading:false
			}
		},
		beforeMount(){
			this.gridOptions = {
				context: {
					componentParent: this
				},
        	    enableColResize: true,
        	    localeText: localeText,
        	    suppressRowClickSelection: true
			};
			this.columnDefs = [
			{	headerName:"采购订单号",field:"purOrdNo"},
			{	headerName:"订单行号",field:"purOrdMxNo"},
			{	headerName:"入库单号",field:"instockNo"},
			{	headerName:"入库行号",field:"instockMxNo"},
			{	headerName:"物料号",field:"matCode"},
			{	headerName:"物料描述",field:"matName"},
			{	headerName:"入库日期",field:"postDate"},
			{	headerName:"入库数量",field:"amount"},
			{	headerName:"金额",field:"realMoney"},
			{	headerName:"差异金额",field:"adjustMoney"},
			{	headerName:"差异",field:""},
			{	headerName:"确认",field:"confirmFlag"}]
		}
	}
</script>

<style>
</style>